import { observable,action} from "mobx";

class Song {
  @observable songDetail = '';
  @observable isSongPage = false;
  @observable song = ''
  @observable songImgUrl = ''

  @action setsongDetail(data) {
    if(this.songDetail === []){
        this.songDetail = data
    }else{
        this.setsongDetail.push(data)
    }
   }
  @action setIsSongPage(data){
    this.isSongPage = data
  }
  @action setSong(data){
    this.song = data
  }
  @action setSongImgUrl(data){
    this.songImgUrl = data
  }
}
let song = new Song();
export default song;